﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

using System.Data.Linq;

namespace ProSOLD
{
  /// <summary>
  /// Interaction logic for Admin_kira_ekle.xaml
  /// </summary>
  

  public partial class Admin_kira_ekle : Window
  {


    #region DbTanımlama
    const string ConnState = @"Data Source=.\SQLEXPRESS; AttachDbFilename=""|DataDirectory|\Database1.mdf""; Integrated Security = True; User Instance = True";
    #endregion


    public Admin_kira_ekle()
    {
      InitializeComponent();
    }

    private void button1_Click(object sender, RoutedEventArgs e)
    {
      DataContext dtx = new DataContext(ConnState);





      kiralik_bilgisi kiralar = new kiralik_bilgisi();

      MessageBox.Show("You must enter a name.", "Name Entry Error",
  MessageBoxButton.YesNoCancel, MessageBoxImage.Warning);



        kiralar.ev_Sahibi += textBox1.Text;
        kiralar.ev_telefonu += textBox2.Text;
        kiralar.ev_bilgisi += textBox3.Text;
        kiralar.ev_bilgisi += textBox4.Text;
        kiralar.ev_synth += textBox5.Text;
        kiralar.ev_uydu += textBox6.Text;
        kiralar.ev_yorumlari += textBox7.Text;





    }

    private void Window_Loaded(object sender, RoutedEventArgs e)
    {






      textBox5.Text += "http://";
      textBox6.Text += "http://";
    }
  }
}
